from flask_restful import Api

from .hall_api import UserMovieHallsResource, UserMovieHallResource
from .movie_user_api import MovieUsersResource
from .order_api import OrdersResource, MovieOrderResource

client_api = Api(prefix='/user')

client_api.add_resource(MovieUsersResource, '/users')
client_api.add_resource(OrdersResource, '/orders')
client_api.add_resource(MovieOrderResource, '/movieorders/<int:order_id>/')

client_api.add_resource(UserMovieHallsResource, "/moviehalls/")
client_api.add_resource(UserMovieHallResource, "/moviehalls/<int:id>/")